package com.henghe.frame.common.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2023/3/31 09:16
 */
public class RequestBase implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(hidden = true)
    private Long requestTime;
    /**
     * 请求时间
     * @return
     */
    public Long getRequestTime() {
        return requestTime==null? (new Date()).getTime():requestTime;
    }
    /**
     *  请求时间
     * @param requestTime
     */
    public void setRequestTime(Long requestTime) {
        this.requestTime = requestTime;
    }
}
